<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2016/9/6
 * Time: 14:40
 */
require 'env.php';

try {
    $pdo = new PDO(DSN, DB_USER, DB_PWD);
    $sql = 'select * from id_nums';
    $result = $pdo->query($sql)->fetchAll();
    var_dump($result);
    exit;

} catch (Exception $e) {
    var_dump($e->getMessage());
}

